package com.py.credit.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.py.framework.core.common.Page;

public interface ZwcxSearchDao {

	List<Map<String, Object>> selectByConditionForPage(@Param(value = "kId") String kId,
			@Param(value = "columns") List<String> showColumns,
			@Param(value = "additionalColumns") String[] additionalColumns, @Param(value = "page") Page page,
			@Param(value = "conditions") List<String> conditions);

	List<Map<String, Object>> selectSharingSearchHistoryList(@Param(value = "userId") long userId,
			@Param(value = "kId") String kId);

	Map<String, Object> selectUniqueList(Map<String, Object> map);

	List<Map<String, String>> selectUniqueByKeyForPage(@Param(value = "kId") String kId,
			@Param(value = "whereSql") String whereSql, @Param(value = "page") Page page);

	void addHistory(@Param(value = "tybm") String tybm, @Param(value = "kId") String kId,
			@Param(value = "userId") long userId);

	int updateHistory(@Param(value = "tybm") String tybm, @Param(value = "kId") String kId,
			@Param(value = "userId") long userId);

	List<Map<String, String>> selectUniqueBKeyWords(@Param(value = "kId") String kId,
			@Param(value = "input") String input);

	List<Map<String, String>> selectUniqueCKeyWords(@Param(value = "kId") String kId,
			@Param(value = "input") String input);

}
